//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package test.集合.点名;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;

public class 点名1 {
    public 点名1() {
    }

    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList();
        Collections.addAll(list, new String[]{"gq", "ff", "zzx", "pl", "xzj", "hzy"});
        System.out.println(demo1(list));
        System.out.println(demo2(list));
    }

    public static String demo1(ArrayList<String> str) {
        Random random = new Random();
        int i = random.nextInt(0, str.size());
        return (String)str.get(i);
    }

    public static String demo2(ArrayList<String> str) {
        Collections.shuffle(str);
        return (String)str.get(0);
    }
}
